package presentation.menuForm_UI;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class Picture extends JPanel{

	private static final long serialVersionUID = 1L;
	public String path="src/Image/focuesed_playgame.png";
	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		Image image	 = new ImageIcon(path).getImage();
		Dimension d=this.getSize();
		g.drawImage(image, 0, 0, d.width,d.height, this );
	}
}
